package com.liuwei.temp_show.Service;

import com.liuwei.temp_show.Dao.TempDao;
import com.liuwei.temp_show.Entity.TempMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class TempService {

    @Autowired
    private TempDao tempDao;

    public List<TempMsg> getAllTemperatures() {
        return tempDao.selectAll();
    }
}